package com.hong.spring.common.config.profile;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @Auther: csh
 * @Date: 2020/7/10 15:20
 * @Description:环境配置
 */
@Configuration
public class EnvironmentConfig {
    @Profile("dev")
    @Bean
    public SystemConfig getTest(){
        return new SystemConfig("dev222222");
    }

    @Profile("idc")
    @Bean
    public SystemConfig getIDC(){
        return new SystemConfig("idc2222222222");
    }

}
